POV-Ray : Newsgroups : povray.unofficial.patches : Why & has higher precedence than + or - in isosurface functions? : Re: Why & has higher precedence than + or - in isosurface functions? Server Time
2 Sep 2024 06:19:40 EDT (-0400)
  Re: Why & has higher precedence than + or - in isosurface functions?  
From: Warp
Date: 6 Aug 2000 10:47:36
Message: <398d7a88@news.povray.org>
Dick Balaska <dic### [at] buckosoftcom> wrote:
: But suppose you are working on a 6502 :) or a PDP-11, which can
: deal with a -1 much easier than a 1; then it makes sense.
: The PDP-11 is big-endian, so when you truncate a 1, you get 0
: like down casting from int to word to char.  The -1 always stayed
: consistent across casts.

  This can't work this way. If it did, then if you make this:

char c = 1;

the variable 'c' will have the value 0.

  '1' is of type int.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):_;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.